package com.exam.service.grade;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.exam.common.vo.ExamStuVO;
import com.exam.common.vo.GradeVO;
import com.exam.common.vo.page.PageModel;
import com.exam.dao.grade.ExamGradeDao;
import com.exam.entity.ExamGrade;

@Service
@Transactional
public class GradeServiceImp implements GradeService {

	@Autowired
	ExamGradeDao gradeDao;
	
	@Override
	public void updateGrade(Integer subjectId, Long stuId, Integer point) {
		gradeDao.updateGrade(subjectId, stuId, point);
	}

	@Override
	public Serializable save(ExamGrade entity) {
		return gradeDao.save(entity);
	}

	@Override
	public Serializable merge(ExamGrade entity) {
		return gradeDao.merge(entity);
	}

	@Override
	public void update(ExamGrade entity) {
		gradeDao.update(entity);
	}

	@Override
	public void saveOrUpdate(ExamGrade entity) {
		gradeDao.saveOrUpdate(entity);
	}

	@Override
	public void delete(ExamGrade entity) {
		gradeDao.delete(entity);
	}

	@Override
	public ExamGrade findByKey(Serializable id) {
		return gradeDao.findByKey(id);
	}

	@Override
	public List<ExamGrade> findAll() {
		return gradeDao.findAll();
	}

	@Override
	public PageModel<GradeVO> gradeList(ExamStuVO stuVO) {
		return gradeDao.gradeList(stuVO);
	}


}
